<?php
if (!$_SESSION['sid']) exit('Permission Denied!');
include("/var/www/html/new/d/common/header.html");
include 'common/left.html';
include '/var/www/html/wx/wechat/iwx.php';
use \LaneWeChat\Core\Ext;
use \LaneWeChat\Core\WeChatOAuth;
//define("WECHAT_APPID", 'wxd72be21f7455640d');
define("WECHAT_APPID", 'wx678d02326b6ba9d9');

$sql = "select id,fid,account,fromusername,createtime,lastlogin,verifycode
        from uu_wx_member_pft where fid=3385";
$GLOBALS['le']->query($sql);
$row = array();
while($row=$GLOBALS['le']->fetch_assoc()){
    $r[$row['fromusername']] = $row;
}
if(count($r)) {
    foreach ($r as $k => $v) {
        $a = \LaneWeChat\Core\UserManage::getUserInfo($k);
        if($a['subscribe']==1) {
            $r[$k] = array_merge($r[$k],$a);
        } else {
            unset($r[$k]);
        }
    }
}

print_r($r);

include 'tpl/set_verify.tpl';
include 'common/footer.html';
?>